package com.ddtech.business.course.query;

import com.ddtech.business.course.entity.CourseGrade;
import com.ddtech.mybatisplus.annotaion.Eq;
import com.ddtech.mybatisplus.annotaion.OrderBy;
import com.ddtech.mybatisplus.enums.OrderByEnum;
import com.ddtech.mybatisplus.query.WebAbstractQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @version v1.0
 * @ClassName:CourseGradeQuery description：查询model
 * @author:wei_zhang(xiao)
 * @date: 2023-06-02 14:59
 */
@Data
public class CourseGradeQuery  extends WebAbstractQuery<CourseGrade> {

    @ApiModelProperty(value = "课程ID")
    @Eq
    private String courseId;

    @ApiModelProperty(value = "评分人ID")
    @Eq
    private String userId;

    @OrderBy(orderBy= OrderByEnum.DESC)
    @ApiModelProperty(value = "排序时间")
    private Date createTime;
}
